<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>智慧配镜 - 商品管理</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <style>
        .glass-effect {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        .mockup {
            border: 2px solid #e5e7eb;
            border-radius: 1rem;
            overflow: hidden;
        }
        .category-badge {
            padding: 0.25rem 0.75rem;
            border-radius: 9999px;
            font-size: 0.875rem;
            font-weight: 500;
        }
        .category-frame {
            background-color: #DBEAFE;
            color: #1E40AF;
        }
        .category-lens {
            background-color: #D1FAE5;
            color: #065F46;
        }
        .category-accessory {
            background-color: #FEF3C7;
            color: #92400E;
        }
    </style>
</head>
<body class="bg-gradient-to-br from-blue-50 to-blue-100 min-h-screen">
    <div class="flex h-screen">
        <!-- 侧边栏 -->
        <div class="w-64 bg-white shadow-lg">
            <div class="p-6">
                <h1 class="text-2xl font-bold text-blue-800">智慧配镜</h1>
                <p class="text-sm text-gray-500 mt-1">管理后台</p>
            </div>
            <nav class="mt-6">
                <div class="px-4 py-2 text-xs font-semibold text-gray-500 uppercase tracking-wider">
                    主要功能
                </div>
                <a href="#" class="flex items-center px-4 py-3 text-gray-600 hover:bg-gray-50">
                    <img src="https://unpkg.com/lucide-static@latest/icons/home.svg" class="w-5 h-5 mr-3">
                    控制台
                </a>
                <a href="#" class="flex items-center px-4 py-3 text-blue-600 bg-blue-50">
                    <img src="https://unpkg.com/lucide-static@latest/icons/package.svg" class="w-5 h-5 mr-3">
                    商品管理
                </a>
                <a href="#" class="flex items-center px-4 py-3 text-gray-600 hover:bg-gray-50">
                    <img src="https://unpkg.com/lucide-static@latest/icons/clipboard-list.svg" class="w-5 h-5 mr-3">
                    订单管理
                </a>
                <a href="#" class="flex items-center px-4 py-3 text-gray-600 hover:bg-gray-50">
                    <img src="https://unpkg.com/lucide-static@latest/icons/users.svg" class="w-5 h-5 mr-3">
                    用户管理
                </a>
                <div class="px-4 py-2 text-xs font-semibold text-gray-500 uppercase tracking-wider mt-4">
                    系统设置
                </div>
                <a href="#" class="flex items-center px-4 py-3 text-gray-600 hover:bg-gray-50">
                    <img src="https://unpkg.com/lucide-static@latest/icons/settings.svg" class="w-5 h-5 mr-3">
                    系统设置
                </a>
                <a href="#" class="flex items-center px-4 py-3 text-gray-600 hover:bg-gray-50">
                    <img src="https://unpkg.com/lucide-static@latest/icons/database.svg" class="w-5 h-5 mr-3">
                    数据备份
                </a>
                <a href="#" class="flex items-center px-4 py-3 text-gray-600 hover:bg-gray-50">
                    <img src="https://unpkg.com/lucide-static@latest/icons/file-text.svg" class="w-5 h-5 mr-3">
                    操作日志
                </a>
            </nav>
        </div>

        <!-- 主内容区域 -->
        <div class="flex-1 flex flex-col overflow-hidden">
            <!-- 顶部导航栏 -->
            <header class="bg-white shadow-sm">
                <div class="flex items-center justify-between px-6 py-4">
                    <div class="flex items-center">
                        <button class="p-2 rounded-lg hover:bg-gray-100">
                            <img src="https://unpkg.com/lucide-static@latest/icons/menu.svg" class="w-5 h-5">
                        </button>
                        <div class="ml-4">
                            <h2 class="text-lg font-semibold text-gray-900">商品管理</h2>
                            <p class="text-sm text-gray-500">管理您的商品信息</p>
                        </div>
                    </div>
                    <div class="flex items-center space-x-4">
                        <button class="p-2 rounded-lg hover:bg-gray-100">
                            <img src="https://unpkg.com/lucide-static@latest/icons/bell.svg" class="w-5 h-5">
                        </button>
                        <div class="flex items-center">
                            <img src="https://ui-avatars.com/api/?name=管理员&background=0D8ABC&color=fff" class="w-8 h-8 rounded-full">
                            <span class="ml-2 text-sm font-medium text-gray-700">管理员</span>
                        </div>
                    </div>
                </div>
            </header>

            <!-- 内容区域 -->
            <main class="flex-1 overflow-y-auto p-6">
                <!-- 搜索和筛选 -->
                <div class="bg-white rounded-lg shadow-sm p-6 mb-6">
                    <div class="flex items-center space-x-4">
                        <div class="flex-1">
                            <div class="relative">
                                <input type="text" placeholder="搜索商品名称、编号..." class="w-full pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
                                <img src="https://unpkg.com/lucide-static@latest/icons/search.svg" class="w-5 h-5 absolute left-3 top-2.5 text-gray-400">
                            </div>
                        </div>
                        <div class="flex space-x-2">
                            <button class="px-4 py-2 text-sm text-gray-600 border border-gray-300 rounded-lg hover:bg-gray-50">
                                全部商品
                            </button>
                            <button class="px-4 py-2 text-sm text-gray-600 border border-gray-300 rounded-lg hover:bg-gray-50">
                                镜框
                            </button>
                            <button class="px-4 py-2 text-sm text-gray-600 border border-gray-300 rounded-lg hover:bg-gray-50">
                                镜片
                            </button>
                            <button class="px-4 py-2 text-sm text-gray-600 border border-gray-300 rounded-lg hover:bg-gray-50">
                                配件
                            </button>
                        </div>
                        <button class="px-4 py-2 text-white bg-blue-600 rounded-lg hover:bg-blue-700 flex items-center">
                            <img src="https://unpkg.com/lucide-static@latest/icons/plus.svg" class="w-5 h-5 mr-2">
                            添加商品
                        </button>
                    </div>
                </div>

                <!-- 商品列表 -->
                <div class="bg-white rounded-lg shadow-sm">
                    <div class="overflow-x-auto">
                        <table class="min-w-full divide-y divide-gray-200">
                            <thead class="bg-gray-50">
                                <tr>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">商品信息</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">分类</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">价格</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">库存</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">状态</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">操作</th>
                                </tr>
                            </thead>
                            <tbody class="bg-white divide-y divide-gray-200">
                                <tr>
                                    <td class="px-6 py-4">
                                        <div class="flex items-center">
                                            <img src="https://images.unsplash.com/photo-1572635196237-14b3f281503f?ixlib=rb-1.2.1&auto=format&fit=crop&w=100&q=80" class="w-12 h-12 rounded-lg object-cover">
                                            <div class="ml-4">
                                                <div class="text-sm font-medium text-gray-900">时尚金属镜框</div>
                                                <div class="text-sm text-gray-500">SKU: FR-001</div>
                                            </div>
                                        </div>
                                    </td>
                                    <td class="px-6 py-4">
                                        <span class="px-2 py-1 text-xs font-medium text-blue-600 bg-blue-100 rounded-full">镜框</span>
                                    </td>
                                    <td class="px-6 py-4 text-sm text-gray-500">¥1,280</td>
                                    <td class="px-6 py-4 text-sm text-gray-500">128</td>
                                    <td class="px-6 py-4">
                                        <span class="px-2 py-1 text-xs font-medium text-green-600 bg-green-100 rounded-full">在售</span>
                                    </td>
                                    <td class="px-6 py-4 text-sm text-gray-500">
                                        <div class="flex space-x-2">
                                            <button class="text-blue-600 hover:text-blue-800">编辑</button>
                                            <button class="text-red-600 hover:text-red-800">删除</button>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="px-6 py-4">
                                        <div class="flex items-center">
                                            <img src="https://images.unsplash.com/photo-1572635196237-14b3f281503f?ixlib=rb-1.2.1&auto=format&fit=crop&w=100&q=80" class="w-12 h-12 rounded-lg object-cover">
                                            <div class="ml-4">
                                                <div class="text-sm font-medium text-gray-900">防蓝光镜片</div>
                                                <div class="text-sm text-gray-500">SKU: LS-001</div>
                                            </div>
                                        </div>
                                    </td>
                                    <td class="px-6 py-4">
                                        <span class="px-2 py-1 text-xs font-medium text-purple-600 bg-purple-100 rounded-full">镜片</span>
                                    </td>
                                    <td class="px-6 py-4 text-sm text-gray-500">¥680</td>
                                    <td class="px-6 py-4 text-sm text-gray-500">256</td>
                                    <td class="px-6 py-4">
                                        <span class="px-2 py-1 text-xs font-medium text-green-600 bg-green-100 rounded-full">在售</span>
                                    </td>
                                    <td class="px-6 py-4 text-sm text-gray-500">
                                        <div class="flex space-x-2">
                                            <button class="text-blue-600 hover:text-blue-800">编辑</button>
                                            <button class="text-red-600 hover:text-red-800">删除</button>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="px-6 py-4">
                                        <div class="flex items-center">
                                            <img src="https://images.unsplash.com/photo-1572635196237-14b3f281503f?ixlib=rb-1.2.1&auto=format&fit=crop&w=100&q=80" class="w-12 h-12 rounded-lg object-cover">
                                            <div class="ml-4">
                                                <div class="text-sm font-medium text-gray-900">眼镜清洁套装</div>
                                                <div class="text-sm text-gray-500">SKU: AC-001</div>
                                            </div>
                                        </div>
                                    </td>
                                    <td class="px-6 py-4">
                                        <span class="px-2 py-1 text-xs font-medium text-yellow-600 bg-yellow-100 rounded-full">配件</span>
                                    </td>
                                    <td class="px-6 py-4 text-sm text-gray-500">¥98</td>
                                    <td class="px-6 py-4 text-sm text-gray-500">56</td>
                                    <td class="px-6 py-4">
                                        <span class="px-2 py-1 text-xs font-medium text-red-600 bg-red-100 rounded-full">缺货</span>
                                    </td>
                                    <td class="px-6 py-4 text-sm text-gray-500">
                                        <div class="flex space-x-2">
                                            <button class="text-blue-600 hover:text-blue-800">编辑</button>
                                            <button class="text-red-600 hover:text-red-800">删除</button>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <!-- 分页 -->
                    <div class="px-6 py-4 border-t border-gray-200">
                        <div class="flex items-center justify-between">
                            <div class="text-sm text-gray-500">
                                显示 1 到 3，共 128 条记录
                            </div>
                            <div class="flex space-x-2">
                                <button class="px-3 py-1 text-sm text-gray-600 border border-gray-300 rounded-lg hover:bg-gray-50">上一页</button>
                                <button class="px-3 py-1 text-sm text-white bg-blue-600 rounded-lg">1</button>
                                <button class="px-3 py-1 text-sm text-gray-600 border border-gray-300 rounded-lg hover:bg-gray-50">2</button>
                                <button class="px-3 py-1 text-sm text-gray-600 border border-gray-300 rounded-lg hover:bg-gray-50">3</button>
                                <button class="px-3 py-1 text-sm text-gray-600 border border-gray-300 rounded-lg hover:bg-gray-50">下一页</button>
                            </div>
                        </div>
                    </div>
                </div>
            </main>
        </div>
    </div>
</body>
</html> 